package com.central.scheduler.dao.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.central.common.handler.ListStrToStringHandler;
import com.central.common.model.SuperEntity;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.List;

import static com.baomidou.mybatisplus.annotation.FieldStrategy.NOT_NULL;

/**
 * @author Tindy
 * @date 2021/10/31
 * @describe
 */
@Data
@TableName(value = "sch_process_definition_owners",autoResultMap = true)
public class ProcessDefinitionOwners extends SuperEntity {
    /**
     * process_definition_id
     */
    private long processDefinitionId;

    /**
     * process owners
     */
    @TableField(jdbcType = JdbcType.VARCHAR, insertStrategy = NOT_NULL, typeHandler = ListStrToStringHandler.class)
    private List<String> owners;
}
